import os.path
import sys

workspace='/home/hengxing/.jenkins/workspace/class_helper/clazz_files/'
start_date_str = '2025-08-25'
total_week = 21
if len(sys.argv) > 1:
    input_file = sys.argv[1]
else:
    input_file = 'D:\\恒星\\all_teacher课程表\\刘兴.xls'

# start_date_str = os.getenv('start_date_str')
# total_week = int(os.getenv('total_week'))
# input_file = os.path.join(workspace, os.getenv('clazz_file'))

excel_header = ['周数','日期','星期','节次','时间','课程','第几讲','校区','教室','教学班编号','教学班']
input_file_name = os.path.join(os.path.basename(input_file))
input_file_basename, ext = os.path.splitext(input_file_name)[0], os.path.splitext(input_file_name)[-1]
teacher_name = os.path.basename(input_file).replace(ext,'')
output_folder = os.path.join(os.path.dirname(input_file), input_file_basename)
os.makedirs(output_folder, exist_ok=True)
output_txt_file = input_file.replace(ext, '.txt')
output_excel_file = os.path.join(output_folder, input_file_basename + '_课程表.xls')

class_time = {
    '1-4':'08:00-11:50',
    '1-2':'08:00-09:50',
    '3-4':'10:05-11:50',
    '5-6':'14:00-15:50',
    '7-8':'16:10-18:00',
    '5-8':'14:00-18:00',
    '9-10':'18:00-20:00'
}